Martin Nordholts [Tue, 31 Aug 2010 18:57:15 +0000 (20:57 +0200)]
configure.ac: Quote version numbers in m4 define
Martin Nordholts [Thu, 22 Jul 2010 21:30:14 +0000 (23:30 +0200)]
build: Add buildbot/suppressed_warnings.txt
Add a warning suppression file for buildbot (http://buildbot.net) so
we can start doing continous automated testing and nightly builds
eventually.
Martin Nordholts [Thu, 22 Jul 2010 21:10:26 +0000 (23:10 +0200)]
Update one more .gitignores
Update one more .gitignores for stuff created during make distcheck.
Martin Nordholts [Thu, 22 Jul 2010 08:10:01 +0000 (10:10 +0200)]
Update .gitignores
Philipp Sadleder [Thu, 22 Jul 2010 07:21:25 +0000 (09:21 +0200)]
introspection: fix girdir and typelibsdir
Build girdir/typelibsdir by using datadir/libdir like in gtk+.
Using INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR leads to absolute system
paths (make distcheck fails).
Mukund Sivaraman [Fri, 16 Jul 2010 15:05:43 +0000 (20:35 +0530)]
Fix type-punning warning
Øyvind Kolås [Fri, 16 Jul 2010 16:47:47 +0000 (17:47 +0100)]
build: fix inclusion of m4/introspection.m4
The gobject introspection additions expected autoreconf to be used in
autogen.sh, perhaps we should do that instead? This commit should fix
building on systems that do not have introspection.m4 in system dirs.
Philipp Sadleder [Mon, 12 Jul 2010 14:49:12 +0000 (16:49 +0200)]
Add experimental introspection support.
Disabled by default; use --enable-introspection to enable it.
Øyvind Kolås [Mon, 28 Jun 2010 16:44:30 +0000 (17:44 +0100)]
extensions: removed frequency extension
Not needed after the introduction of babl_format_n
Øyvind Kolås [Sun, 27 Jun 2010 23:42:02 +0000 (00:42 +0100)]
Add code to handle N-components
Added a new API call, babl_format_n (). This allows constructing a babl
format with an arbitrary number of components all of the same type. At
the moment. The model used for such formats is "Y", at the moment
conversions are only well defined for such formats to other n-component
formats with the same number of components.
Øyvind Kolås [Sun, 27 Jun 2010 17:01:12 +0000 (18:01 +0100)]
remove some left-over dead code
Øyvind Kolås [Sun, 27 Jun 2010 16:48:24 +0000 (17:48 +0100)]
babl_realloc: move destructor from original to new
Øyvind Kolås [Sun, 27 Jun 2010 13:50:41 +0000 (14:50 +0100)]
Port all of babl to use use babl_set_destructor
Making all babl objects be free-able with babl_free means that overall
management code can be directly shared between the different
babl-classes.
Øyvind Kolås [Sun, 27 Jun 2010 14:26:38 +0000 (15:26 +0100)]
babl-internal: remove unneeded lines from gdb output
Øyvind Kolås [Sun, 27 Jun 2010 14:09:33 +0000 (15:09 +0100)]
babl_free: Add double free detection
Øyvind Kolås [Sat, 26 Jun 2010 02:54:53 +0000 (03:54 +0100)]
Add a babl_set_destructor
Keep a callback function for each allocation instance, that allows an
allocation specific callback to be called when the memory segment is
freed. This makes a valgrind warning go away, most of the time no extra
memory should be needed since this is likely to fit within the padding.
Mukund Sivaraman [Mon, 21 Jun 2010 17:50:17 +0000 (23:20 +0530)]
Add entries to .gitignore
Mukund Sivaraman [Mon, 21 Jun 2010 17:39:51 +0000 (23:09 +0530)]
Change Makefile rule to avoid warning
Øyvind Kolås [Wed, 17 Mar 2010 13:08:10 +0000 (13:08 +0000)]
Increment path to babl tarballs in install file
Tor Lillqvist [Fri, 29 Jan 2010 10:10:00 +0000 (12:10 +0200)]
Build concurrency-stress-test only on Unix as it uses pthreads unconditionally
Tor Lillqvist [Fri, 29 Jan 2010 09:56:24 +0000 (11:56 +0200)]
Use _WIN32 instead of WIN32
Tor Lillqvist [Fri, 29 Jan 2010 09:50:36 +0000 (11:50 +0200)]
Use _WIN32 instead of WIN32
_WIN32 works more reliably, like if somebody compiles with --std=c99.
Øyvind Kolås [Mon, 18 Jan 2010 00:51:20 +0000 (00:51 +0000)]
fix CIE Lab alpha float format
It used to specify a double data type.
Øyvind Kolås [Thu, 14 Jan 2010 18:02:05 +0000 (18:02 +0000)]
Post release increment of version to 0.1.3
Øyvind Kolås [Thu, 14 Jan 2010 18:01:04 +0000 (18:01 +0000)]
Release babl-0.1.2
Øyvind Kolås [Sun, 29 Nov 2009 15:42:05 +0000 (15:42 +0000)]
Only initialize test buffers once
Also made the test buffer static inline for individual conversions like
it already was for fish paths.
Note, this relies on none of the tested conversions by accident
being buggy enough to modify their source data, adding a sanity
function that compares the buffers with the correct values could
perhaps be useful.
Øyvind Kolås [Thu, 26 Nov 2009 18:45:41 +0000 (18:45 +0000)]
made babl_list_size babl_list_get_first and babl_list_get_last macros.
Thereby forcing inlining to gain performance critical code where the
overhead of additional function calls matter.
Øyvind Kolås [Tue, 24 Nov 2009 01:18:57 +0000 (01:18 +0000)]
Fix logic for type detection in babl_fish_process
Øyvind Kolås [Tue, 24 Nov 2009 01:04:38 +0000 (01:04 +0000)]
Removed two function calls in common path
Re-arranged code making babl_process and babl_fish_process reside
in babl-path-fish.c, where babl_fish_process and babl_fish_path_process
can be inlined with babl_process().
Øyvind Kolås [Tue, 24 Nov 2009 00:56:56 +0000 (00:56 +0000)]
Removed instrumentation from babl_process.
This is part of the inner babl processing and should be as slim as
posisble.
Øyvind Kolås [Sun, 22 Nov 2009 18:28:23 +0000 (18:28 +0000)]
Remove use of static buffer to build the name for format.
Øyvind Kolås [Sun, 22 Nov 2009 17:44:52 +0000 (17:44 +0000)]
Make the initial list size in all databases 512 long.
Like the previous commit.
Øyvind Kolås [Sun, 22 Nov 2009 17:10:39 +0000 (17:10 +0000)]
Increase the default size of hash tables to 512 entries.
This avoids resizing of the hash tables for all typical usage scenarios
and thus avoids a potential race condition in unlocked lookups.
Øyvind Kolås [Sat, 21 Nov 2009 18:31:50 +0000 (18:31 +0000)]
Fix accidental use of the format mutex instead of the debug mutex.
The memory statistics book-keeping was reusing the BablFormat flag mutex
thus deadlocking with pthreads mutexes since they are not recursive by
default.
Michael Schumacher [Sat, 21 Nov 2009 17:11:23 +0000 (18:11 +0100)]
CriticalSection does not exist, it is CRITICAL_SECTION
Øyvind Kolås [Sat, 21 Nov 2009 16:47:24 +0000 (16:47 +0000)]
Made BablFishPath thread safe.
Refactored static variables away and added a lock to protect state
keeping inside the individual BablFormat when permutating possible
conversion paths.
Øyvind Kolås [Sat, 21 Nov 2009 16:42:43 +0000 (16:42 +0000)]
Added a mutex to memory sanity counters.
Also added a BABL_DEBUG_MEM define which is set to 1 in babl-internal.h
that can be used to disable these locks which only are nedded when
debugging.
Daniel Paredes García [Wed, 8 Jul 2009 14:58:45 +0000 (16:58 +0200)]
First aproximation to a thread-safe version of babl.
Øyvind Kolås [Sat, 21 Nov 2009 16:15:04 +0000 (16:15 +0000)]
Made the each babl type db in babl have a mutex.
We lock only on mutations of the databases, when reading from them no
locks are needed.
Øyvind Kolås [Sat, 21 Nov 2009 16:05:00 +0000 (16:05 +0000)]
Made babl_hash_table_find thread safe by making find_func an argument.
Øyvind Kolås [Sat, 21 Nov 2009 15:55:11 +0000 (15:55 +0000)]
Added a BablMutex type.
Mutex abstraction for internal use pthreads by default and critical
sections on win32.
Øyvind Kolås [Sat, 21 Nov 2009 15:50:41 +0000 (15:50 +0000)]
Make babl_ticks() thread safe.
Made a static variable a temporary variable in the only function using
it.
Martin Nordholts [Thu, 19 Nov 2009 18:59:10 +0000 (19:59 +0100)]
tests: Add pthread based concurrency stress test for babl_fish()
Add a test that runs a bunch of pthread threads, all trying to use
babl_fish() at the same time. This test currently fails and it is the
goal of bug 587675 to make it pass.
The cause of the failure is the static variables in babl-fish-path.c.
In particular 'current_path' clearly needs to be moved to some
instance variable.
Øyvind Kolås [Thu, 12 Nov 2009 19:32:39 +0000 (19:32 +0000)]
Added direct code paths for RGB u8 and RGBA u8 to RaGaBaA float
Yaakov Selkowitz [Thu, 8 Oct 2009 23:33:26 +0000 (01:33 +0200)]
Bug 562741 - babl Cygwin patch : PLATFORM_WIN32 patch
Martin Nordholts [Fri, 7 Aug 2009 19:47:00 +0000 (21:47 +0200)]
Update .gitignore for win32
Martin Nordholts [Fri, 7 Aug 2009 19:17:35 +0000 (21:17 +0200)]
Add $(EXEEXT) to tools in Makefile.ams to fix win32 compilation
Martin Nordholts [Tue, 4 Aug 2009 19:01:20 +0000 (21:01 +0200)]
babl: Fix compiler warnings
Avoid redefinition and implicit casts
Martin Nordholts [Sun, 2 Aug 2009 08:57:37 +0000 (10:57 +0200)]
extensions: Add "CIE LCH(ab) [alpha] float"
Add "CIE LCH(ab) float" and "CIE LCH(ab) alpha float" as babl formats
and implement conversions from/to RGBA float.
Martin Nordholts [Sat, 1 Aug 2009 21:42:10 +0000 (23:42 +0200)]
extensions: Remove disabled gamma related code in CIE.c
Remove disabled gamma related code in CIE.c, no point in keeping it
around, it only complicates the code.
Martin Nordholts [Sat, 1 Aug 2009 19:43:38 +0000 (21:43 +0200)]
extensions: Rename CIE-Lab.c to CIE.c
Rename CIE-Lab.c to CIE.c so that we can keep more CIE color spaces in
a single file. It would be overkill to separate the common code for
other color spaces into shared files.
Danny Robson [Sun, 19 Jul 2009 12:50:37 +0000 (22:50 +1000)]
Change occurences of assert (0) into babl_fatal()
babl_fatal() is the more appropriate method to die upon failure, so
all instances of assert (0) have been changed into babl_fatal() with
some attempt of an error message.
In this process, the babl_fish_process() method was refactored into
using the existing case statement.
Bug #589027.
Danny Robson [Sun, 19 Jul 2009 11:35:40 +0000 (21:35 +1000)]
Change sprintf() to babl_strcat() in model create_name()
babl/babl-model.c create_name uses an unsafe incantation of sprintf
to build names from concatenated components which should ideally use a
"%s" format specifier preceding the instance name.
Instead of fixing this, we replace it with a babl_strcat() based
alternative which allows us to remove the thread-unsafe static character
buffer at the cost of a few mallocs and a free.
Also do some cleanups, mainly to avoid two exit points from the
function, that increases readability and warns if a model with the
same name is registered twice.
This is bug #589021.
Danny Robson [Sun, 19 Jul 2009 09:31:47 +0000 (19:31 +1000)]
Make use of system return value to avoid warnings
Make (minimal) use of system's return value to avoid gcc complaining, as
it's declared using the warn_unused_result attribute.
Danny Robson [Sun, 19 Jul 2009 09:24:54 +0000 (19:24 +1000)]
Use pointer integer types for comparisons
Convert all occurences of pointer arithmetic using integral types to use
the standard ptrdiff_t and intptr_t types. Fixes some build warnings.
Martin Nordholts [Fri, 17 Jul 2009 18:19:38 +0000 (20:19 +0200)]
Incorporate minor version in soname
Incorporate minor version in soname. We do this to compensate for the
immaturity of the API and future ABI/API breakage.
Martin Nordholts [Tue, 14 Jul 2009 18:06:27 +0000 (20:06 +0200)]
Enable automake silent-rules by default
Enable silent build rules by default, requires at least
Automake-1.11. Disable by either passing --disable-silent-rules to
configure or passing V=1 to make.
Martin Nordholts [Tue, 14 Jul 2009 17:55:20 +0000 (19:55 +0200)]
Generate ChangeLog from git log
Add rule to generate ChangeLog from git log, copied from pango and
Behdad Esfahbod. Also disable the rss generation in docs since the rss
tool can't handle the git log format.
Martin Nordholts [Tue, 14 Jul 2009 17:40:16 +0000 (19:40 +0200)]
Update .gitignore
Martin Nordholts [Tue, 14 Jul 2009 17:39:59 +0000 (19:39 +0200)]
extensions: Explicitly specify sources
Explicitly specify extension sources since there seems to be some
problem with AM_DEFAULT_SOURCE_EXT with automake-1.11.
Martin Nordholts [Tue, 14 Jul 2009 17:33:56 +0000 (19:33 +0200)]
babl: Don't declare functions with external linkage as inline
Don't declare functions with external linkage as inline. The way we
did it is forbidden in C99 and causes compilation problems on other
platforms. See bug #572154.
Martin Nordholts [Tue, 23 Jun 2009 04:28:17 +0000 (06:28 +0200)]
Update SVN reference to git
Sven Neumann [Fri, 3 Jul 2009 19:04:58 +0000 (21:04 +0200)]
require automake >= 1.9.6 and libtool >= 1.5
Martin Nordholts [Sat, 23 May 2009 11:41:20 +0000 (13:41 +0200)]
Add babl.doap
Fryderyk Dziarmagowski [Sat, 23 May 2009 10:55:39 +0000 (12:55 +0200)]
Bug 583565 – babl 0.1.0 build fixes
Don't apply dynamic library versioning to the babl extensions.
Fryderyk Dziarmagowski [Sat, 23 May 2009 10:49:25 +0000 (12:49 +0200)]
Bug 583565 – babl 0.1.0 build fixes
The DESTDIR variable should not be used in a Makefile.am.
Martin Nordholts [Wed, 20 May 2009 23:44:31 +0000 (01:44 +0200)]
Obsolete the ChangeLog file
Martin Nordholts [Wed, 20 May 2009 23:44:18 +0000 (01:44 +0200)]
Bump version to 0.1.1
Martin Nordholts [Tue, 19 May 2009 18:30:50 +0000 (20:30 +0200)]
0.1.0 released
Martin Nordholts [Tue, 19 May 2009 18:04:21 +0000 (20:04 +0200)]
Bump version to 0.1.0
Bump version to 0.1.0 and make sure the link name remains `babl-0.0'.
Martin Nordholts [Wed, 20 May 2009 20:27:27 +0000 (22:27 +0200)]
docs: Add .libs directories to BABL_PATHs
Also add .libs directories to the BABL_PATHs so that e.g. the
BablFishPath introspection chart is properly generated when doing a
build, at least on Linux.
Martin Nordholts [Wed, 20 May 2009 17:30:18 +0000 (19:30 +0200)]
docs: Convert SVN references to git
Martin Nordholts [Tue, 19 May 2009 17:59:15 +0000 (19:59 +0200)]
Update ChangeLog
Martin Nordholts [Tue, 19 May 2009 18:13:14 +0000 (20:13 +0200)]
Update NEWS with release date
Martin Nordholts [Tue, 19 May 2009 05:39:40 +0000 (07:39 +0200)]
Finish update of AUTHORS..
Martin Nordholts [Tue, 19 May 2009 05:24:50 +0000 (07:24 +0200)]
Update AUTHORS and NEWS for 0.1.0
Hubert Figuiere [Sat, 16 May 2009 07:27:03 +0000 (03:27 -0400)]
Add extern "C" to the header for C++ friendliness.
Martin Nordholts [Sat, 4 Apr 2009 19:46:35 +0000 (19:46 +0000)]
Bug 568576 – [PATCH] undefined operation fix
Patch from Stanislav Brabec
svn path=/trunk/; revision=415
Martin Nordholts [Sat, 4 Apr 2009 10:21:20 +0000 (10:21 +0000)]
Update AUTHORS for 0.1.0
svn path=/trunk/; revision=414
Martin Nordholts [Sat, 4 Apr 2009 09:32:42 +0000 (09:32 +0000)]
extensions: util.h is part of the source
make distcheck passes now
svn path=/trunk/; revision=413
Martin Nordholts [Sat, 4 Apr 2009 09:32:38 +0000 (09:32 +0000)]
babl/Makefile.am: Add forgotten header files
babl/Makefile.am: Add forgotten header files that needs to be
distributed with a release.
svn path=/trunk/; revision=412
Martin Nordholts [Sat, 4 Apr 2009 09:32:34 +0000 (09:32 +0000)]
Makefile.am: We don't have a COPYING.LESSER anymore
svn path=/trunk/; revision=411
Martin Nordholts [Sat, 4 Apr 2009 09:32:31 +0000 (09:32 +0000)]
Update ChangeLog with previous commit
svn path=/trunk/; revision=410
Martin Nordholts [Wed, 1 Apr 2009 19:37:12 +0000 (19:37 +0000)]
Update NEWS for 0.1.0
svn path=/trunk/; revision=409
Martin Nordholts [Tue, 31 Mar 2009 17:09:42 +0000 (17:09 +0000)]
Avoid the need for define __func__ "unknown" on some vendor compilers
Patch from Gary V. Vaughan
svn path=/trunk/; revision=408
Martin Nordholts [Tue, 31 Mar 2009 17:09:38 +0000 (17:09 +0000)]
Don't try to pass gcc flags to vendor compilers
Patch from Gary V. Vaughan
svn path=/trunk/; revision=407
Martin Nordholts [Tue, 31 Mar 2009 17:09:34 +0000 (17:09 +0000)]
Rewrite xml-insert.sh in portable bourne-shell
Patch from Gary V. Vaughan
svn path=/trunk/; revision=406
Martin Nordholts [Tue, 31 Mar 2009 17:09:29 +0000 (17:09 +0000)]
Don't use depecrated features or reduntant declarations in Makefile.am
Patch from Gary V. Vaughan
svn path=/trunk/; revision=405
Martin Nordholts [Tue, 31 Mar 2009 17:09:22 +0000 (17:09 +0000)]
Support hpux use of shl load/unload and dsos with .sl suffixes
Patch from Gary V. Vaughan
svn path=/trunk/; revision=404
Kevin Cozens [Fri, 27 Mar 2009 20:13:01 +0000 (20:13 +0000)]
Applied patch from Matteo 'Peach' Pescarin which makes build use rsvg
* configure.ac:
* docs/graphics/Makefile.am: Applied patch from Matteo 'Peach'
Pescarin which makes build use rsvg binary instead of inkscape
to create pngs. Fixes bug 571516.
svn path=/trunk/; revision=403
Manish Singh [Thu, 26 Mar 2009 22:26:38 +0000 (22:26 +0000)]
BABL_VARIADIC_MACROS needs to be called before the libtool stuff (which
* configure.ac: BABL_VARIADIC_MACROS needs to be called before
the libtool stuff (which implicitly calls AC_PROG_CXX)
svn path=/trunk/; revision=402
Martin Nordholts [Wed, 25 Mar 2009 19:02:39 +0000 (19:02 +0000)]
NULL-statements caused by trailing commas are non-portable
Patch from Gary V. Vaughan
svn path=/trunk/; revision=401
Martin Nordholts [Wed, 25 Mar 2009 19:02:35 +0000 (19:02 +0000)]
Handle variadic macros in a portable way
Apply patch from Gary V. Vaughan that adds configure time checks for
variadic macros and adapts the definitions of such macros in-code
accordingly so that babl can be compiled on more platforms.
svn path=/trunk/; revision=400
Martin Nordholts [Wed, 25 Mar 2009 19:02:31 +0000 (19:02 +0000)]
Some vendor compilers can't compile non-constant elements of compound struct initializers
Patch from Gary V. Vaughan
svn path=/trunk/; revision=399
Martin Nordholts [Wed, 25 Mar 2009 19:02:28 +0000 (19:02 +0000)]
Some vendor C compilers choke on C++ comments
Patch from Gary V. Vaughan
svn path=/trunk/; revision=398
Martin Nordholts [Wed, 25 Mar 2009 19:02:24 +0000 (19:02 +0000)]
enum values must be less than INT_MAX (sign bit is illegal)
Patch from Gary V. Vaughan
svn path=/trunk/; revision=397
Martin Nordholts [Wed, 25 Mar 2009 19:02:20 +0000 (19:02 +0000)]
Remove trailing comma in enum declaration
Patch from Gary V. Vaughan
svn path=/trunk/; revision=396
Martin Nordholts [Wed, 25 Mar 2009 19:02:17 +0000 (19:02 +0000)]
Include config.h in some files that missed it
Patch from Gary V. Vaughan
svn path=/trunk/; revision=395
Sven Neumann [Tue, 24 Feb 2009 21:17:27 +0000 (21:17 +0000)]
based on a patch from Gary V. Vaughan, include "config.h" before any other
2009-02-24 Sven Neumann <sven@gimp.org>
* */*.c: based on a patch from Gary V. Vaughan, include
"config.h"
before any other header file from all .c files.
* babl/babl-internal.h
* extensions/util.h: instead of including config.h from here,
bail
out if it wasn't included beforehand.
svn path=/trunk/; revision=394
Martin Nordholts [Fri, 20 Feb 2009 21:18:56 +0000 (21:18 +0000)]
Add .gitignore files generated with git svn create-ignore
svn path=/trunk/; revision=393